﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class EnemyAngleDebug : MonoBehaviour
{
    public new Camera camera;


    void Update()
    {
        float angle = Vector3.Angle(camera.transform.forward, EnemyAudio.instance.randomVec);
        
        var text = GetComponent<Text>();
        if (text != null) text.text = angle.ToString();
    }
}
